import {
  defineStore
} from 'pinia'
import {
  ref
} from 'vue'

export const useFoodList = defineStore('foodList', () => {

  const foodList = ref([])

  const setFoodList = (data) => {
    foodList.value = data
  }


  return {
    foodList, setFoodList
  }
},
  {

    // 打开持久化，默认进行 localStorage 储存
    persist: true
  },
)